/**
 * 
 */
package wtests.spring.transaction;

import javax.sql.DataSource;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author Wayne.Wang<5waynewang@gmail.com>
 * @since 3:55:08 PM May 22, 2014
 */
@Transactional
@Component
public class TransactionalBean {

	@Autowired
	DataSource dataSource;

	public DataSource getDataSource() {
		return dataSource;
	}

	public void insert() {

	}
}
